refactor: add sync generator for zod2md tooling setup#1188
refactor: add sync generator for zod2md tooling setup#1188
Conversation
|
View your CI Pipeline Execution ↗ for commit 22b2fb8
☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 58b3eea ☁️ Nx Cloud last updated this comment at |
@code-pushup/ci
@code-pushup/cli
@code-pushup/core
@code-pushup/create-cli
@code-pushup/models
@code-pushup/nx-plugin
@code-pushup/axe-plugin
@code-pushup/coverage-plugin
@code-pushup/eslint-plugin
@code-pushup/js-packages-plugin
@code-pushup/jsdocs-plugin
@code-pushup/lighthouse-plugin
@code-pushup/typescript-plugin
@code-pushup/utils
commit: |
Code PushUp🥳 Code PushUp report has improved – compared current commit f47aacb with previous commit 7b6e72c. 💼 Project
|
| 🏷️ Category | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|
| Documentation | 🟡 61 | 🟡 61 |
5 other categories are unchanged.
👍 1 group improved
🗃️ Groups
| 🔌 Plugin | 🗃️ Group | ⭐ Previous score | ⭐ Current score | 🔄 Score change |
|---|---|---|---|---|
| JSDocs coverage | Documentation coverage | 🟡 61 | 🟡 61 |
14 other groups are unchanged.
🛡️ Audits
All of 444 audits are unchanged.
💼 Project plugin-lighthouse
🤨 Code PushUp report has both improvements and regressions.
🕵️ See full comparison in Code PushUp portal 🔍
All of 6 categories are unchanged.
1 audit changed without impacting score
🗃️ Groups
All of 15 groups are unchanged.
🛡️ Audits
| 🔌 Plugin | 🛡️ Audit | 📏 Previous value | 📏 Current value | 🔄 Value change |
|---|---|---|---|---|
| Code coverage | Branch coverage | 🟩 98.8 % | 🟩 98.8 % |
443 other audits are unchanged.
12 other projects are unchanged.
# Conflicts: # nx.json # package-lock.json # tools/zod2md-jsdocs/project.json
Code PushUp🤨 Code PushUp report has both improvements and regressions – compared current commit 5a9df5d with previous commit 7b6e72c. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories👍 1 group improved, 👎 2 groups regressed, 👍 4 audits improved, 👎 6 audits regressed, 15 audits changed without impacting score🗃️ Groups
31 other groups are unchanged. 🛡️ Audits
654 other audits are unchanged. |
# Conflicts: # tools/zod2md-jsdocs/tsconfig.json # tools/zod2md-jsdocs/tsconfig.lib.json # tools/zod2md-jsdocs/tsconfig.test.json
# Conflicts: # testing/test-utils/src/index.ts
- Fix path.join issue with absolute paths starting with '/' - This resolves nx workspace root detection issues on Windows
|
@matejchalk to be able to use uncompiled Nx tooling code we can't have Here we see the existing plugin does not have any import to local files: https://github.com/code-pushup/cli/blob/main/tools/zod2md-jsdocs/src/nx-plugin.ts otherwise it fails. Any other ideas? 💡 how should we progress here other than avoiding extensions? |
Removing import extensions would break our package builds. That's not worth it for a nice-to-have local tool. If there's no way to tell Nx to look up a matching |
💡 Actually, I think I've found a way. We can set a custom Node loader using environment variables. I've tested it locally by adding a |
preconditions:
This PR implements:
zod2mddependencies ifzod2md.config.jsis presentUsage
Example project structure
Targeted behavior summary
zod2md.config.ts→ project is ignoredbuild.dependsOnentries → updated automatically